package org.example;

/**
 * @author 甜圆
 * @version v1.0.1
 * @date 2025/9/23 19:54
 * @package org.example
 * @copyright 甜圆
 */
public class Address implements Cloneable{
    private String name;
    // 省略构造函数、Getter&Setter方法
    @Override
    public Address clone() {
        try {
            return (Address) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new AssertionError();
        }
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Address() {
    }

    public Address(String name) {
        this.name = name;
    }
}